<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>实例生命周期钩子</title>
</head>
<body>

<script src="../js/vue.js"></script>
<script>
    new Vue({
        data: {
            a: 1
        },
        created: function (){
            console.log('a is :' + this.a)
        }
    })
</script>
</body>
</html>